python3-PyRSS2Gen is a Python module that makes it easy to generate
valid RSS feeds. You can use it to generate RSS feeds for web pages
that don't have them.

There is also RSSLib which looks like it does the same thing in a
slightly different way.
